import request from "@/utils/request.js";

// 获取行业分类树列表
export function industryTree() {
  return request({
    url: "/xcx/common/industryTree",
    method: "get",
  });
}
// 获取岗位分类树列表
export function postTree(params) {
  return request({
    url: "/xcx/common/postTree",
    method: "get",
    params,
  });
}
// 根据父级获取子级数据（省市区街道） 默认查询根目录
export function regionList(data) {
  return request({
    url: "/xcx/common/regionList",
    method: "get",
    data,
  });
}
// 获取省市结构 二级
export function regionTreeLevel(data) {
  return request({
    url: "/xcx/common/regionTreeLevel",
    method: "get",
    data,
  });
}

// 获取省市区三级

export function regionTreeAPI(data) {
  return request({
    url: "/xcx/common/regionTree",
    method: "get",
    data,
  });
}

// 获取门店下拉数据
export function selectStoreList(data) {
  return request({
    url: "/xcx/common/selectStoreList",
    method: "get",
    data,
  });
}
// 查询企业下拉数据
export function selectQylist(data) {
  return request({
    url: "/xcx/common/selectQylist",
    method: "get",
    data,
  });
}
// 获取岗位员工下拉数据
export function selectPostStaffList(pid) {
  return request({
    url: "/xcx/common/selectPostStaffList/" + pid,
    method: "get",
  });
}
// 根据字典类型查询字典数据信息
export function getDictType(dictType) {
  return request({
    url: "/xcx/common/type/" + dictType,
    method: "get",
  });
}
// 查询标签下拉数据
export function selectLabel(data) {
  return request({
    url: "/xcx/common/selectLabel",
    method: "get",
    data,
  });
}
//根据一级行业获取二级行业及三级岗位分类树列表
export function industryAllTree(industryId) {
  return request({
    url: "/xcx/common/industryAllTree/" + industryId,
    method: "get",
  });
}

// 获取银行下拉列表
export function getBankList() {
  return request({
    url: "/xcx/common/getBankList/",
    method: "get",
  });
}

// 获取银行分行列表
export function getBankListItem(params) {
  return request({
    url: "/xcx/common/getBranchList/" + params,
    method: "get",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    },
  });
}

// 上传OSS对象存储
export function upload(data) {
  return request({
    url: "/xcx/common/upload",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data
  });
}

// 获取审核状态
export function getParam() {
  return request({
    url: "/xcx/common/getParam",
    method: 'get',
  });
}

// 获取审核状态
export function selectMapKey() {
  return request({
    url: "/xcx/common/selectMapKey ",
    method: 'get',
  });
}

// 获取审核状态
export function cityCode(data) {
  return request({
    url: "/xcx/zp/home/cityCode",
    method: 'get',
    data
  });
}

// 获取审核状态
export function verify() {
  return request({
    url: "/xcx/common/verify",
    method: 'get',
  });
}
